package com.ruoyi.retirement.service.impl;

import com.ruoyi.retirement.domain.RetirementConfig;
import com.ruoyi.retirement.mapper.RetirementConfigMapper;
import com.ruoyi.retirement.service.IRetirementConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 参数配置Service业务层处理
 * 
 * @author 曹旭
 * @date 2025-09-04
 */
@Service
public class RetirementConfigServiceImpl implements IRetirementConfigService 
{
    @Autowired
    private RetirementConfigMapper retirementConfigMapper;

    /**
     * 查询参数配置
     * 
     * @param id 参数配置主键
     * @return 参数配置
     */
    @Override
    public RetirementConfig selectRetirementConfigById(Long id)
    {
        return retirementConfigMapper.selectRetirementConfigById(id);
    }

    /**
     * 查询参数配置列表
     * 
     * @param retirementConfig 参数配置
     * @return 参数配置
     */
    @Override
    public List<RetirementConfig> selectRetirementConfigList(RetirementConfig retirementConfig)
    {
        return retirementConfigMapper.selectRetirementConfigList(retirementConfig);
    }

    /**
     * 新增参数配置
     * 
     * @param retirementConfig 参数配置
     * @return 结果
     */
    @Override
    public int insertRetirementConfig(RetirementConfig retirementConfig)
    {
        return retirementConfigMapper.insertRetirementConfig(retirementConfig);
    }

    /**
     * 修改参数配置
     * 
     * @param retirementConfig 参数配置
     * @return 结果
     */
    @Override
    public int updateRetirementConfig(RetirementConfig retirementConfig)
    {
        return retirementConfigMapper.updateRetirementConfig(retirementConfig);
    }

    /**
     * 批量删除参数配置
     * 
     * @param ids 需要删除的参数配置主键
     * @return 结果
     */
    @Override
    public int deleteRetirementConfigByIds(Long[] ids)
    {
        return retirementConfigMapper.deleteRetirementConfigByIds(ids);
    }

    /**
     * 删除参数配置信息
     * 
     * @param id 参数配置主键
     * @return 结果
     */
    @Override
    public int deleteRetirementConfigById(Long id)
    {
        return retirementConfigMapper.deleteRetirementConfigById(id);
    }
}
